<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    a {
      position: relative;
      display: block;
      width: 55px;
      height: 55px;
      overflow: hidden;
      background-color: #ff6700;
    }
    a::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      z-index: 1;
      width: 55px;
      height: 55px;
      margin-left: 55px;
      background: url(https://s02.mifile.cn/assets/static/image/mi-logo.png) no-repeat 50% 50%;
      transition: all .2s;
    }

    a::after {
      position: absolute;
      left: 0;
      top: 0;
      z-index: 1;
      width: 55px;
      height: 55px;
      content: "";
      background: url(https://s02.mifile.cn/assets/static/image/mi-home.png) no-repeat 50% 50%;
      opacity: 0;
      margin-left: 0;
      transform: translateZ(0);
      transition: all .2s;
    }
    a:hover::after {
      margin-left: 0;
    }
    a:hover::before {
      margin-left: 55px;
    }
  </style>
</head>
<body>
 <a href="#"></a>
</body>
</html>